package com.runfast.waimai.dao.model;

import java.util.ArrayList;
import java.util.List;

public class RunfastShoppererrorExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RunfastShoppererrorExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andAgentnameIsNull() {
            addCriterion("agentname is null");
            return (Criteria) this;
        }

        public Criteria andAgentnameIsNotNull() {
            addCriterion("agentname is not null");
            return (Criteria) this;
        }

        public Criteria andAgentnameEqualTo(String value) {
            addCriterion("agentname =", value, "agentname");
            return (Criteria) this;
        }

        public Criteria andAgentnameNotEqualTo(String value) {
            addCriterion("agentname <>", value, "agentname");
            return (Criteria) this;
        }

        public Criteria andAgentnameGreaterThan(String value) {
            addCriterion("agentname >", value, "agentname");
            return (Criteria) this;
        }

        public Criteria andAgentnameGreaterThanOrEqualTo(String value) {
            addCriterion("agentname >=", value, "agentname");
            return (Criteria) this;
        }

        public Criteria andAgentnameLessThan(String value) {
            addCriterion("agentname <", value, "agentname");
            return (Criteria) this;
        }

        public Criteria andAgentnameLessThanOrEqualTo(String value) {
            addCriterion("agentname <=", value, "agentname");
            return (Criteria) this;
        }

        public Criteria andAgentnameLike(String value) {
            addCriterion("agentname like", value, "agentname");
            return (Criteria) this;
        }

        public Criteria andAgentnameNotLike(String value) {
            addCriterion("agentname not like", value, "agentname");
            return (Criteria) this;
        }

        public Criteria andAgentnameIn(List<String> values) {
            addCriterion("agentname in", values, "agentname");
            return (Criteria) this;
        }

        public Criteria andAgentnameNotIn(List<String> values) {
            addCriterion("agentname not in", values, "agentname");
            return (Criteria) this;
        }

        public Criteria andAgentnameBetween(String value1, String value2) {
            addCriterion("agentname between", value1, value2, "agentname");
            return (Criteria) this;
        }

        public Criteria andAgentnameNotBetween(String value1, String value2) {
            addCriterion("agentname not between", value1, value2, "agentname");
            return (Criteria) this;
        }

        public Criteria andShoppernameIsNull() {
            addCriterion("shoppername is null");
            return (Criteria) this;
        }

        public Criteria andShoppernameIsNotNull() {
            addCriterion("shoppername is not null");
            return (Criteria) this;
        }

        public Criteria andShoppernameEqualTo(String value) {
            addCriterion("shoppername =", value, "shoppername");
            return (Criteria) this;
        }

        public Criteria andShoppernameNotEqualTo(String value) {
            addCriterion("shoppername <>", value, "shoppername");
            return (Criteria) this;
        }

        public Criteria andShoppernameGreaterThan(String value) {
            addCriterion("shoppername >", value, "shoppername");
            return (Criteria) this;
        }

        public Criteria andShoppernameGreaterThanOrEqualTo(String value) {
            addCriterion("shoppername >=", value, "shoppername");
            return (Criteria) this;
        }

        public Criteria andShoppernameLessThan(String value) {
            addCriterion("shoppername <", value, "shoppername");
            return (Criteria) this;
        }

        public Criteria andShoppernameLessThanOrEqualTo(String value) {
            addCriterion("shoppername <=", value, "shoppername");
            return (Criteria) this;
        }

        public Criteria andShoppernameLike(String value) {
            addCriterion("shoppername like", value, "shoppername");
            return (Criteria) this;
        }

        public Criteria andShoppernameNotLike(String value) {
            addCriterion("shoppername not like", value, "shoppername");
            return (Criteria) this;
        }

        public Criteria andShoppernameIn(List<String> values) {
            addCriterion("shoppername in", values, "shoppername");
            return (Criteria) this;
        }

        public Criteria andShoppernameNotIn(List<String> values) {
            addCriterion("shoppername not in", values, "shoppername");
            return (Criteria) this;
        }

        public Criteria andShoppernameBetween(String value1, String value2) {
            addCriterion("shoppername between", value1, value2, "shoppername");
            return (Criteria) this;
        }

        public Criteria andShoppernameNotBetween(String value1, String value2) {
            addCriterion("shoppername not between", value1, value2, "shoppername");
            return (Criteria) this;
        }

        public Criteria andOvercountIsNull() {
            addCriterion("overcount is null");
            return (Criteria) this;
        }

        public Criteria andOvercountIsNotNull() {
            addCriterion("overcount is not null");
            return (Criteria) this;
        }

        public Criteria andOvercountEqualTo(Integer value) {
            addCriterion("overcount =", value, "overcount");
            return (Criteria) this;
        }

        public Criteria andOvercountNotEqualTo(Integer value) {
            addCriterion("overcount <>", value, "overcount");
            return (Criteria) this;
        }

        public Criteria andOvercountGreaterThan(Integer value) {
            addCriterion("overcount >", value, "overcount");
            return (Criteria) this;
        }

        public Criteria andOvercountGreaterThanOrEqualTo(Integer value) {
            addCriterion("overcount >=", value, "overcount");
            return (Criteria) this;
        }

        public Criteria andOvercountLessThan(Integer value) {
            addCriterion("overcount <", value, "overcount");
            return (Criteria) this;
        }

        public Criteria andOvercountLessThanOrEqualTo(Integer value) {
            addCriterion("overcount <=", value, "overcount");
            return (Criteria) this;
        }

        public Criteria andOvercountIn(List<Integer> values) {
            addCriterion("overcount in", values, "overcount");
            return (Criteria) this;
        }

        public Criteria andOvercountNotIn(List<Integer> values) {
            addCriterion("overcount not in", values, "overcount");
            return (Criteria) this;
        }

        public Criteria andOvercountBetween(Integer value1, Integer value2) {
            addCriterion("overcount between", value1, value2, "overcount");
            return (Criteria) this;
        }

        public Criteria andOvercountNotBetween(Integer value1, Integer value2) {
            addCriterion("overcount not between", value1, value2, "overcount");
            return (Criteria) this;
        }

        public Criteria andOvermoneyIsNull() {
            addCriterion("overmoney is null");
            return (Criteria) this;
        }

        public Criteria andOvermoneyIsNotNull() {
            addCriterion("overmoney is not null");
            return (Criteria) this;
        }

        public Criteria andOvermoneyEqualTo(Double value) {
            addCriterion("overmoney =", value, "overmoney");
            return (Criteria) this;
        }

        public Criteria andOvermoneyNotEqualTo(Double value) {
            addCriterion("overmoney <>", value, "overmoney");
            return (Criteria) this;
        }

        public Criteria andOvermoneyGreaterThan(Double value) {
            addCriterion("overmoney >", value, "overmoney");
            return (Criteria) this;
        }

        public Criteria andOvermoneyGreaterThanOrEqualTo(Double value) {
            addCriterion("overmoney >=", value, "overmoney");
            return (Criteria) this;
        }

        public Criteria andOvermoneyLessThan(Double value) {
            addCriterion("overmoney <", value, "overmoney");
            return (Criteria) this;
        }

        public Criteria andOvermoneyLessThanOrEqualTo(Double value) {
            addCriterion("overmoney <=", value, "overmoney");
            return (Criteria) this;
        }

        public Criteria andOvermoneyIn(List<Double> values) {
            addCriterion("overmoney in", values, "overmoney");
            return (Criteria) this;
        }

        public Criteria andOvermoneyNotIn(List<Double> values) {
            addCriterion("overmoney not in", values, "overmoney");
            return (Criteria) this;
        }

        public Criteria andOvermoneyBetween(Double value1, Double value2) {
            addCriterion("overmoney between", value1, value2, "overmoney");
            return (Criteria) this;
        }

        public Criteria andOvermoneyNotBetween(Double value1, Double value2) {
            addCriterion("overmoney not between", value1, value2, "overmoney");
            return (Criteria) this;
        }

        public Criteria andChaoshidanIsNull() {
            addCriterion("chaoshidan is null");
            return (Criteria) this;
        }

        public Criteria andChaoshidanIsNotNull() {
            addCriterion("chaoshidan is not null");
            return (Criteria) this;
        }

        public Criteria andChaoshidanEqualTo(Integer value) {
            addCriterion("chaoshidan =", value, "chaoshidan");
            return (Criteria) this;
        }

        public Criteria andChaoshidanNotEqualTo(Integer value) {
            addCriterion("chaoshidan <>", value, "chaoshidan");
            return (Criteria) this;
        }

        public Criteria andChaoshidanGreaterThan(Integer value) {
            addCriterion("chaoshidan >", value, "chaoshidan");
            return (Criteria) this;
        }

        public Criteria andChaoshidanGreaterThanOrEqualTo(Integer value) {
            addCriterion("chaoshidan >=", value, "chaoshidan");
            return (Criteria) this;
        }

        public Criteria andChaoshidanLessThan(Integer value) {
            addCriterion("chaoshidan <", value, "chaoshidan");
            return (Criteria) this;
        }

        public Criteria andChaoshidanLessThanOrEqualTo(Integer value) {
            addCriterion("chaoshidan <=", value, "chaoshidan");
            return (Criteria) this;
        }

        public Criteria andChaoshidanIn(List<Integer> values) {
            addCriterion("chaoshidan in", values, "chaoshidan");
            return (Criteria) this;
        }

        public Criteria andChaoshidanNotIn(List<Integer> values) {
            addCriterion("chaoshidan not in", values, "chaoshidan");
            return (Criteria) this;
        }

        public Criteria andChaoshidanBetween(Integer value1, Integer value2) {
            addCriterion("chaoshidan between", value1, value2, "chaoshidan");
            return (Criteria) this;
        }

        public Criteria andChaoshidanNotBetween(Integer value1, Integer value2) {
            addCriterion("chaoshidan not between", value1, value2, "chaoshidan");
            return (Criteria) this;
        }

        public Criteria andChaoshiliIsNull() {
            addCriterion("chaoshili is null");
            return (Criteria) this;
        }

        public Criteria andChaoshiliIsNotNull() {
            addCriterion("chaoshili is not null");
            return (Criteria) this;
        }

        public Criteria andChaoshiliEqualTo(Double value) {
            addCriterion("chaoshili =", value, "chaoshili");
            return (Criteria) this;
        }

        public Criteria andChaoshiliNotEqualTo(Double value) {
            addCriterion("chaoshili <>", value, "chaoshili");
            return (Criteria) this;
        }

        public Criteria andChaoshiliGreaterThan(Double value) {
            addCriterion("chaoshili >", value, "chaoshili");
            return (Criteria) this;
        }

        public Criteria andChaoshiliGreaterThanOrEqualTo(Double value) {
            addCriterion("chaoshili >=", value, "chaoshili");
            return (Criteria) this;
        }

        public Criteria andChaoshiliLessThan(Double value) {
            addCriterion("chaoshili <", value, "chaoshili");
            return (Criteria) this;
        }

        public Criteria andChaoshiliLessThanOrEqualTo(Double value) {
            addCriterion("chaoshili <=", value, "chaoshili");
            return (Criteria) this;
        }

        public Criteria andChaoshiliIn(List<Double> values) {
            addCriterion("chaoshili in", values, "chaoshili");
            return (Criteria) this;
        }

        public Criteria andChaoshiliNotIn(List<Double> values) {
            addCriterion("chaoshili not in", values, "chaoshili");
            return (Criteria) this;
        }

        public Criteria andChaoshiliBetween(Double value1, Double value2) {
            addCriterion("chaoshili between", value1, value2, "chaoshili");
            return (Criteria) this;
        }

        public Criteria andChaoshiliNotBetween(Double value1, Double value2) {
            addCriterion("chaoshili not between", value1, value2, "chaoshili");
            return (Criteria) this;
        }

        public Criteria andErroroverdanIsNull() {
            addCriterion("erroroverdan is null");
            return (Criteria) this;
        }

        public Criteria andErroroverdanIsNotNull() {
            addCriterion("erroroverdan is not null");
            return (Criteria) this;
        }

        public Criteria andErroroverdanEqualTo(Integer value) {
            addCriterion("erroroverdan =", value, "erroroverdan");
            return (Criteria) this;
        }

        public Criteria andErroroverdanNotEqualTo(Integer value) {
            addCriterion("erroroverdan <>", value, "erroroverdan");
            return (Criteria) this;
        }

        public Criteria andErroroverdanGreaterThan(Integer value) {
            addCriterion("erroroverdan >", value, "erroroverdan");
            return (Criteria) this;
        }

        public Criteria andErroroverdanGreaterThanOrEqualTo(Integer value) {
            addCriterion("erroroverdan >=", value, "erroroverdan");
            return (Criteria) this;
        }

        public Criteria andErroroverdanLessThan(Integer value) {
            addCriterion("erroroverdan <", value, "erroroverdan");
            return (Criteria) this;
        }

        public Criteria andErroroverdanLessThanOrEqualTo(Integer value) {
            addCriterion("erroroverdan <=", value, "erroroverdan");
            return (Criteria) this;
        }

        public Criteria andErroroverdanIn(List<Integer> values) {
            addCriterion("erroroverdan in", values, "erroroverdan");
            return (Criteria) this;
        }

        public Criteria andErroroverdanNotIn(List<Integer> values) {
            addCriterion("erroroverdan not in", values, "erroroverdan");
            return (Criteria) this;
        }

        public Criteria andErroroverdanBetween(Integer value1, Integer value2) {
            addCriterion("erroroverdan between", value1, value2, "erroroverdan");
            return (Criteria) this;
        }

        public Criteria andErroroverdanNotBetween(Integer value1, Integer value2) {
            addCriterion("erroroverdan not between", value1, value2, "erroroverdan");
            return (Criteria) this;
        }

        public Criteria andErroroverliIsNull() {
            addCriterion("erroroverli is null");
            return (Criteria) this;
        }

        public Criteria andErroroverliIsNotNull() {
            addCriterion("erroroverli is not null");
            return (Criteria) this;
        }

        public Criteria andErroroverliEqualTo(Double value) {
            addCriterion("erroroverli =", value, "erroroverli");
            return (Criteria) this;
        }

        public Criteria andErroroverliNotEqualTo(Double value) {
            addCriterion("erroroverli <>", value, "erroroverli");
            return (Criteria) this;
        }

        public Criteria andErroroverliGreaterThan(Double value) {
            addCriterion("erroroverli >", value, "erroroverli");
            return (Criteria) this;
        }

        public Criteria andErroroverliGreaterThanOrEqualTo(Double value) {
            addCriterion("erroroverli >=", value, "erroroverli");
            return (Criteria) this;
        }

        public Criteria andErroroverliLessThan(Double value) {
            addCriterion("erroroverli <", value, "erroroverli");
            return (Criteria) this;
        }

        public Criteria andErroroverliLessThanOrEqualTo(Double value) {
            addCriterion("erroroverli <=", value, "erroroverli");
            return (Criteria) this;
        }

        public Criteria andErroroverliIn(List<Double> values) {
            addCriterion("erroroverli in", values, "erroroverli");
            return (Criteria) this;
        }

        public Criteria andErroroverliNotIn(List<Double> values) {
            addCriterion("erroroverli not in", values, "erroroverli");
            return (Criteria) this;
        }

        public Criteria andErroroverliBetween(Double value1, Double value2) {
            addCriterion("erroroverli between", value1, value2, "erroroverli");
            return (Criteria) this;
        }

        public Criteria andErroroverliNotBetween(Double value1, Double value2) {
            addCriterion("erroroverli not between", value1, value2, "erroroverli");
            return (Criteria) this;
        }

        public Criteria andChapingshuIsNull() {
            addCriterion("chapingshu is null");
            return (Criteria) this;
        }

        public Criteria andChapingshuIsNotNull() {
            addCriterion("chapingshu is not null");
            return (Criteria) this;
        }

        public Criteria andChapingshuEqualTo(Integer value) {
            addCriterion("chapingshu =", value, "chapingshu");
            return (Criteria) this;
        }

        public Criteria andChapingshuNotEqualTo(Integer value) {
            addCriterion("chapingshu <>", value, "chapingshu");
            return (Criteria) this;
        }

        public Criteria andChapingshuGreaterThan(Integer value) {
            addCriterion("chapingshu >", value, "chapingshu");
            return (Criteria) this;
        }

        public Criteria andChapingshuGreaterThanOrEqualTo(Integer value) {
            addCriterion("chapingshu >=", value, "chapingshu");
            return (Criteria) this;
        }

        public Criteria andChapingshuLessThan(Integer value) {
            addCriterion("chapingshu <", value, "chapingshu");
            return (Criteria) this;
        }

        public Criteria andChapingshuLessThanOrEqualTo(Integer value) {
            addCriterion("chapingshu <=", value, "chapingshu");
            return (Criteria) this;
        }

        public Criteria andChapingshuIn(List<Integer> values) {
            addCriterion("chapingshu in", values, "chapingshu");
            return (Criteria) this;
        }

        public Criteria andChapingshuNotIn(List<Integer> values) {
            addCriterion("chapingshu not in", values, "chapingshu");
            return (Criteria) this;
        }

        public Criteria andChapingshuBetween(Integer value1, Integer value2) {
            addCriterion("chapingshu between", value1, value2, "chapingshu");
            return (Criteria) this;
        }

        public Criteria andChapingshuNotBetween(Integer value1, Integer value2) {
            addCriterion("chapingshu not between", value1, value2, "chapingshu");
            return (Criteria) this;
        }

        public Criteria andChapingliIsNull() {
            addCriterion("chapingli is null");
            return (Criteria) this;
        }

        public Criteria andChapingliIsNotNull() {
            addCriterion("chapingli is not null");
            return (Criteria) this;
        }

        public Criteria andChapingliEqualTo(Double value) {
            addCriterion("chapingli =", value, "chapingli");
            return (Criteria) this;
        }

        public Criteria andChapingliNotEqualTo(Double value) {
            addCriterion("chapingli <>", value, "chapingli");
            return (Criteria) this;
        }

        public Criteria andChapingliGreaterThan(Double value) {
            addCriterion("chapingli >", value, "chapingli");
            return (Criteria) this;
        }

        public Criteria andChapingliGreaterThanOrEqualTo(Double value) {
            addCriterion("chapingli >=", value, "chapingli");
            return (Criteria) this;
        }

        public Criteria andChapingliLessThan(Double value) {
            addCriterion("chapingli <", value, "chapingli");
            return (Criteria) this;
        }

        public Criteria andChapingliLessThanOrEqualTo(Double value) {
            addCriterion("chapingli <=", value, "chapingli");
            return (Criteria) this;
        }

        public Criteria andChapingliIn(List<Double> values) {
            addCriterion("chapingli in", values, "chapingli");
            return (Criteria) this;
        }

        public Criteria andChapingliNotIn(List<Double> values) {
            addCriterion("chapingli not in", values, "chapingli");
            return (Criteria) this;
        }

        public Criteria andChapingliBetween(Double value1, Double value2) {
            addCriterion("chapingli between", value1, value2, "chapingli");
            return (Criteria) this;
        }

        public Criteria andChapingliNotBetween(Double value1, Double value2) {
            addCriterion("chapingli not between", value1, value2, "chapingli");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}